
class Note {
	
	//	Persistence Attributes
	String 	text
	boolean disabled = false
	
	Date 	dateCreated
	Date 	lastUpdated

	//	DB Relations
 	static 	belongsTo = [createdBy:	User]
 	
	//	DB Constraits
	static constraints = {
		text(blank:false, maxSize:100)
	}

	
	//	Default order to sort
	static mapping = { sort "dateCreated" }
}